﻿using UnityEngine;
using System.Collections;

public class BGMovePosition : MonoBehaviour {

    public float speed = 2f;
	void Start () {
	
	}
	
	
	void Update () {
        Move();
	}

    private void Move()
    {
        if (transform.position.x >= -15)
        {
            transform.Translate(Vector3.left * speed * Time.deltaTime, Space.Self);
        }
    }
}
